package com.luych.toolbox.common.feign.param.gateway.center;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("WebSocket消息通知")
public class WebSocketNotice {

    @ApiModelProperty("类型")
    private Type type;
    @ApiModelProperty("消息")
    private String message;
    @ApiModelProperty("数据")
    private Object data;

    public WebSocketNotice(Type type, String message) {
        this.type = type;
        this.message = message;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Type getType() {
        return type;
    }

    public String getMessage() {
        return message;
    }

    public Object getData() {
        return data;
    }

    public static enum Type {
        INFO, WARN, SUCCESS, ERROR
    }
}
